package diamondServer.resources;

import java.util.Map;

/**
 * A {@code Message} contains all the fields needed by the {@code Service} 
 * that receives the Message.
 */
public interface Message 
						extends Cloneable
{
	/**
	 * Fills the {@code Message} with the given parameters.
	 * Refill should be available.
	 * 
	 * @param 	params
	 * 			the parameters the {@code Message} should be filled with.
	 * 			All parameter is a pair {field, value}
	 */
	void fill(Map<String,String> params);
	
	String getResourceName();
	void setResourceName(String sResourceName);
	
	public Message clone() throws CloneNotSupportedException;
}
